package zz.champion_contest04;

public class Q1_Vehicle {
	private int speed;
	private double size;
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	public double getSize() {
		return size;
	}
	public void setSize(double size) {
		this.size = size;
	}
	void move(){
		System.out.println(name+"移动了");
	}
	void speedUp(){
		speed =speed+1;}
	void speedDown(){
		speed=speed-1;
	}
}
